package com.wanlian.netty.msg.Device.model;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.MsgType;

/**
 * 路由器强制升级
 */
public class RouterVersionReq extends BaseMsg {
    private VersionUpgrade versionUpgrade;

    public RouterVersionReq() {
        super();
        this.setType(MsgType.DEVICE_VERSION_UPGRADE);
    }

    public VersionUpgrade getVersionUpgrade() {
        return versionUpgrade;
    }

    public void setVersionUpgrade(VersionUpgrade versionUpgrade) {
        this.versionUpgrade = versionUpgrade;
        this.setContent(JsonStringUtil.writeValueAsString(versionUpgrade));
    }
}
